﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace ExcelUtilities.Cfg
{
    /// <summary>
    /// 单元格区域 配置信息
    /// </summary>
    public class Range
    {
        /// <summary>
        /// 区域名
        /// 区域的标识
        /// </summary>
        [XmlAttribute]
        public string Name { get; set; }
        
        Bag<Column> _columns = new Bag<Column>();
        /// <summary>
        /// 区域列配置信息
        /// </summary>
        [XmlElement("Column")]
        public Bag<Column> Columns { get { return _columns; } set { _columns = value; } }

        /// <summary>
        /// 区域开始的行号（从1开始）
        /// </summary>
        [XmlAttribute]
        public int StartRow { get; set; }
        /// <summary>
        /// 区域结束的行号（从1开始）
        /// </summary>
        [XmlAttribute]
        public int EndRow { get; set; }
    }
}
